//模块主窗口
ShowTaskWinPanel = Ext.extend(Ext.Window,{
 	layout:"fit",
   	title: "任务处理",
   	closeAction: 'hide',
	resizable:false,
	modal:true,
	width:650,
	height:445,
   	initComponent : function() {
   				var formpanel = new Ext.form.FormPanel({
				text : "表单",
				layout : "form",
				region : "center",
				frame : true,
				labelAlign : "right",
				width : '100%',
				labelWidth:80,
				items : [{
					xtype:"fieldset",
					collapsible: true,
					layout:'table',
					layoutConfig:{
	            	tableAttrs: {
       					align:'left'
   					 },
	            	columns: 3
				 	},
		    		titleCollapse:true,
		            title: "上级处理意见",
		            autoHeight:true,
		            items:[{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"上级人员",name:"superStaffName",readOnly:true,style:'background:#E6E6E6'}]
				    		},
				    		{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"部门",name:"superDeptName",readOnly:true,style:'background:#E6E6E6'}]
				    		},
				    		{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"维护组",name:"superGroupName",readOnly:true,style:'background:#E6E6E6'}]
				    		},{ 
				    	layout : "form",
				    	colspan:3,
				    		items:[{fieldLabel:"处理意见",width:477,xtype:'textarea',name:"superMessage",readOnly:true,style:'background:#E6E6E6'}]
				    		},{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{fieldLabel:"起始时间",width:100,xtype:'textfield',name:"startDate",readOnly:true,style:'background:#E6E6E6'}]
				    		},{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{fieldLabel:"结束时间",width:100,xtype:'textfield',name:"endDate",readOnly:true,style:'background:#E6E6E6'}]
				    		}
				    ]
				},{
					xtype:"fieldset",
					collapsible: true,
		    		titleCollapse:true,
		            title: "我的处理描述",
		            autoHeight:true,
		            layout:'table',
					layoutConfig:{
	            	tableAttrs: {
       					align:'left'
   					 },
	            	columns: 4
				 	},items:[{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"姓名",name:"staffName",readOnly:true,style:'background:#E6E6E6'}]
				    		},
				    		{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"部门",name:"deptName",readOnly:true,style:'background:#E6E6E6'}]
				    		},
				    		{ 
				    	layout : "form",
				    	colspan:2,
				    		items:[{width:100,xtype:'textfield',fieldLabel:"维护组",name:"groupName",readOnly:true,style:'background:#E6E6E6'}]
				    		},{ 
				    	layout : "form",
				    	colspan:3,
				    		items:[{fieldLabel:"问题单",width:140,xtype:'textfield',name:"taskName",readOnly:true,style:'background:#E6E6E6'}]
				    		},
				    		{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{xtype:'button',text:"处&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;理"}]
				    		},{ 
				    	layout : "form",
				    	colspan:4,
				    		items:[{fieldLabel:"处理意见",width:477,xtype:'textarea',name:"processResult.processMessage"}]
				    		},{ 
				    	layout : "form",
				    	colspan:3,
				    		items:[{fieldLabel:"分发组",
				    			xtype: 'lovcombo',
					        	store : groupStore,   
						         displayField:'paramDisplay',
						         valueField:'paramValue',
						         hiddenName:'monitorType',
						         mode : 'remote',
						         editable:false,
						         tips:true,
						         triggerAction: 'all',   
						         emptyText:'选择分发组' 
				    		}]
				    		},{ 
				    	layout : "form",
				    	colspan:1,
				    		items:[{xtype:'button',text:"提&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;交",
				    			handler :function(btn) {
				    				thisGrid.submitTask(thisGrid);
				    			}
				    		}]
				    		}
				    		
				 		]
				}],
				buttonAlign :'center',
				minButtonWidth:60,
				buttons:[{
					text:"取消",
					handler : function(btn){
						this.ownerCt.ownerCt.ownerCt.hide();
				}
				}]
		});
   		ShowTaskWinPanel.superclass.initComponent.call(this);
   	 }
});